﻿using HalconDotNet;
using Halcon二次开发.Controller.主界面交互;
using Halcon二次开发.Model.图像绑定流程图显示;
using Halcon二次开发.Model.用户属性;
using Halcon二次开发.Model.自定义控件;
using System.Collections.Generic;
using System.Windows.Forms;

namespace Halcon二次开发.Model
{
    public class StaicResouce
    {
        /// <summary>
        /// 主页面图像显示变量
        /// </summary>
        public static HImage HImage { get; set; }
        /// <summary>
        /// 任务的名字,key是工程，value是任务名
        /// </summary>
        public static Dictionary<string,string> FilesName = new Dictionary<string, string>();
        /// <summary>
        /// 主页面的流程图,samart视图集合
        /// </summary>
        public static List<UserControl> HomeForms = new List<UserControl>();
        /// <summary>
        /// 所有工位的集合
        /// </summary>
        public static List<Form1Controller> formCollections = new List<Form1Controller>();
        /// <summary>
        /// 当前使用任务的集合
        /// </summary>
        public static List<string> homeContolrName = new List<string>();
        /// <summary>
        /// TODO:当前工作位的界面    
        /// </summary>
       // public static HwindowFlowNodeUrseControl HwindowFlowNodeUrse { get; set; }
        /// <summary>
        /// 准备粘贴的节点,可实现跨工程复制
        /// </summary>
        public static TreeNode CopyTreeNode = null;

        /// <summary>
        /// 用户信息
        /// </summary>
        public static List<UrseInformation> UrseInforMationDb = new List<UrseInformation>();
        /// <summary>
        /// 登录成功后的用户下标
        /// </summary>
        public static int UrseIndex = -1;
        /// <summary>
        /// 所以工程名的集合
        /// </summary>
        public static List<string> projectList= new List<string>();
    }
}
